package net.vanchu.mortgagecalculator.mortgage.resultShow;

import net.vanchu.mortgagecalculator.mortgage.data.repaymentSummary.RepaySummary;

/**
 * Created by Granton on 2016/12/23.
 */
public class ResultData<T extends RepaySummary> {

    private int resultType;

    private T repaySummary;

    public int getResultType() {
        return resultType;
    }

    public T getRepaySummary() {
        return repaySummary;
    }

    public ResultData(int resultType, T repaySummary) {
        this.resultType = resultType;
        this.repaySummary = repaySummary;
    }

    public static final int ITEM_TYPE_SINGLE_TOTAL_BALANCED_SUM = 1;
    public static final int ITEM_TYPE_SINGLE_PRINCIPAL_BALANCED_SUM = 2;
    public static final int ITEM_TYPE_RESULT_SHOW_COMPLAIN = 3;
    public static final int ITEM_TYPE_SINGLE_TABLE_HEADER = 4;
    public static final int ITEM_TYPE_SINGLE_TOTAL_BALANCED_TABLE_DATA_ODD_INDEX = 5;
    public static final int ITEM_TYPE_SINGLE_PRINCIPAL_BALANCED_TABLE_DATA_ODD_INDEX = 6;
    public static final int ITEM_TYPE_SINGLE_TOTAL_BALANCED_TABLE_DATA_EVEN_INDEX = 7;
    public static final int ITEM_TYPE_SINGLE_PRINCIPAL_BALANCED_TABLE_DATA_EVEN_INDEX = 8;
    public static final int ITEM_TYPE_RESULT_SHOW_FOOTER = 9;
    public static final int ITEM_TYPE_MIX_TOTAL_BALANCED_SUM = 10;
    public static final int ITEM_TYPE_MIX_PRINCIPAL_BALANCED_SUM = 11;
    public static final int ITEM_TYPE_MIX_TABLE_HEADER = 12;
    public static final int ITEM_TYPE_MIX_TOTAL_BALANCED_TABLE_DATA_ODD_INDEX = 13;
    public static final int ITEM_TYPE_MIX_PRINCIPAL_BALANCED_TABLE_DATA_ODD_INDEX = 14;
    public static final int ITEM_TYPE_MIX_TOTAL_BALANCED_TABLE_DATA_EVEN_INDEX = 15;
    public static final int ITEM_TYPE_MIX_PRINCIPAL_BALANCED_TABLE_DATA_EVEN_INDEX = 16;
}